import { HashRouter, Routes, Route } from 'react-router-dom'
import { routes } from '@/router'

const App = () => {
  return (
    <HashRouter>
      <Routes>
        {routes?.map((m) => {
          const Element = m.component
          return <Route key={m.name} path={m.path} element={<Element />} />
        })}
      </Routes>
    </HashRouter>
  )
}

export default App
